<%@page import="bean.MemberVo"%>
<%@page import="bean.MemberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src='./js/member.js'></script>
<link rel='stylesheet' href='./member/member.css'>
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id='vo' class='bean.MemberVo' scope='page'/>
<jsp:setProperty property="*" name="vo"/>
<%

request.setCharacterEncoding("utf-8");

MemberDTO dto= new MemberDTO();
dto.setVo(vo);
MemberVo v= dto.selectOne();

%>
<li>아이디:<%=v.getMid()%></li>
<li>이름:<%=v.getIrum()%></li>
<li>사진:<%=v.getPhoto()%></li>

<%
	out.print("사진: "+v.getPhoto());
%>

<%if(v.getPhoto() != null){ %>
	<img src='./memberPhoto/<%=v.getPhoto() %>' alt="사진" width='200px' height='100px'>
<%} %>
	
<%-- <% --%>
<%-- if(v.getPhoto() !=null){%> --%>
<%-- 	<li><img src='./memberPhoto/<%=v.getPhoto() %>' alt="사진" width='200px' height='200px'> --%>
<%-- <%} %> --%>

<h1>게시판 보기</h1>
<input type='button' value ='게시판 작성' 	id='btnInput'/>
<input type='button' value ='수정' 		id='btnModify'/>
<input type='button' value ='삭제' 		id='btnDelete'/>
<input type='button' value ='목록으로' 	id='btnList'/>

<form name='hiddenfrm' method='post'>
	<input type='hidden' name='mid' value='<%=vo.getMid() %>'/>
	<input type='hidden' name='irum' value='<%=vo.getIrum() %>'/>
	<input type='hidden' name='photo' value='<%=vo.getPhoto() %>'/>
	<input type='hidden' name='nowPage' value='<%=vo.getNowPage() %>'/>
	<input type='hidden' name='find' value='<%=vo.getFind() %>'/>
</form>
</body>
<script>viewInit();</script>
</html>